home *** CD-ROM | disk | FTP | other *** search
- Bart.Uyttenhove@ping.be (Bart Uyttenhove) writes:
-
- > CyberScreen = OpenScreenTags(NULL, SA_DisplayID, result, TAG_END);
-
- CyberScreen should be a pointer to a screen struct, i.e.:
-
- struct Screen *CyberScreen;
-
- ...
-
- > result=FillPixelArray(&CyberScreen->RastPort,20,20,300,200,0x00ff0000);
-
- However, here you are passing the *address* of this pointer (due to
- the & modifier), dereferenced by the RastPort pointer storage offset,
- rather than the address of the structure the pointer is pointing to.
- You At this stage, you could be passing any value to the
- FillPixelArray function, and if you run enforcer you'll probably find
- it gives you a long-read hit at $00000054 or something similar.
-
- Assuming that CyberScreen has actually been properly declared, then you
- need to lose the "&" modifier in any calls using this pointer.
-
- --
- "Oh yeah? That rabbit couldn't draw flies if he was covered in syrup!"
- |-----------------.
- | A3000@Indigo.ie |
- `-----------------|
-